package com.hua.designpattern.creational.singleton;

/**
 * 
 * @author joshua
 * 
 *         线程不安全，延迟加载
 *
 */

public class SingletonLazyInit {

	private static SingletonLazyInit instance = null;

	private SingletonLazyInit() {
	}

	public static SingletonLazyInit getInstance() {
		if (instance == null) {
			instance = new SingletonLazyInit();
		}
		return instance;
	}
}
